package com.serkol.constant;


import com.serkol.ams.entity.LoginLog;
import com.serkol.ams.entity.SysConfig;
import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class AuthConstant {
    private static List<String> auth;
    private static LoginLog loginLog;
    private static String language;
    private static String pathUrl;
    private static Map<String,Object> setting;
    private static Map<String,Object> settingsInfo;

    private static Map<String, SysConfig> config;

    public static List<String> getAuth() {
        return auth;
    }

    public static void setAuth(List<String> auth) {
        AuthConstant.auth = auth;
    }

    public static LoginLog getLoginLog() {
        if(loginLog == null) {
            loginLog = new LoginLog();
            loginLog.setAgentId(1L);
        }
        return loginLog;
    }

    public static void setLoginLog(LoginLog loginLog) {
        AuthConstant.loginLog = loginLog;
    }

    public static String getLanguage() {
        return language;
    }

    public static void setLanguage(String language) {
        AuthConstant.language = language;
    }

    public static Map<String, Object> getSetting() {
        return setting;
    }

    public static Map<String, SysConfig> getConfig() {
        return config;
    }

    public static void setConfig(Map<String, SysConfig> config) {
        AuthConstant.config = config;
    }

    public static void setSetting(Map<String, Object> setting) {
        AuthConstant.setting = setting;
    }

    public static String getPathUrl() {
        return pathUrl;
    }

    public static void setPathUrl(String pathUrl) {
        AuthConstant.pathUrl = pathUrl;
    }
    public static Map<String, Object> getSettingsInfo() {
        return settingsInfo;
    }
    public static void setSettingsInfo(Map<String, Object> settingsInfo) {
        AuthConstant.settingsInfo = settingsInfo;
    }
}
